{literal}
<script language="javascript">
function all_check() 
{ 
	with (document.attach) 
	{ 
		for (var i=1; i < elements.length; i++) 
		{ 
			if (elements[i].type == 'checkbox') 
			{ 
				elements[i].checked = ! elements[i].checked; 
			} 
		} 
	} 
}
</script>
{/literal}
<td dir="rtl" valign="top" width="73%">
<p align="left">{include file="pager.tpl"}</p>
<br />
<div align="center">
      <form name='attach' method='POST' action='usercp.php?option=1&amp;attach=1&amp;del=1'>
<table border="1" class="border" cellspacing="1" width="100%">
        <tr>
          <td class="tcat" colspan="6">مرفقاتك الخاصة</td>
        </tr>
        <tr>
          <td class="thead" width="2%"><input type='checkbox' onclick='all_check()' Name='check_all' /></td>
          <td class="thead" width="5%">extention</td>
          <td class="thead" width="30%">إسم الملف</td>
          <td class="thead" width="5%">عدد الزوار</td>
          <td class="thead" width="10%">حجم الملف</td>
          <td class="thead" width="25%">الموضوع</td>
        </tr>
               {section name=idx loop=$getattach_num}
        <tr>
          <td class="row3dark" width="2%"><input type='checkbox' Name='attach_id[]' value="{$getattach_row[idx].id}" /></td>
          <td class="row3dark" width="5%"><small><img alt="{$getattach_row[idx].filename|escape:"html"}" src="{$getattach_row[idx].fileext}" border="0"/></small></td>
          <td class="row3" width="12%"><small><a target="_blank" href="attach.php?download=1&amp;id={$getattach_row[idx].id}">{$getattach_row[idx].filename}</a></small></td>
          <td class="row3dark" width="5%"><small>{$getattach_row[idx].visitor}</small></td>
          <td class="row3" width="10%"><small>{$getattach_row[idx].filesize}&nbsp;Bytes</small></td>
          <td class="row3dark" width="25%"><small>{if $getattach_row[idx].subject_id neq 0}<a href="show.php?main=1&amp;id={$getattach_row[idx].subject_id}">{$getattach_row[idx].subject_title}</a> {if $getattach_row[idx].reply eq 1}
                        <br />
                        في الرد: {$getattach_row[idx].reply_title}
                        {/if}
                        {else}
                        لم يُضف المرفق إلى أي موضوع
                        {/if}
                        </small></td>
        </tr>
         {/section}
        </table>
<br />
<p align="right">&nbsp;&nbsp;&nbsp;<input type="submit" onclick='DeleteMessages()' value='حذف' name="delete" /></p>
<p align="left">{include file="pager.tpl"}</p>
        </form>    </td></tr></table>